This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
the document is in mime format, not notes rich text format
the short answer:
you need to use the MIME apis to access the document data. as andre suggested, see the designer help for information on the MIME apis. (and be sure to set the session property, ConvertMIME, to false or you will get a mime->cd conversion when you access the document.)
some background:
regarding the "file attachment": it's not really an attachment, per se.
here are the doc properties from your original post:
Field Name: $FILE Data Type: Attached Object Data Length: 44 bytes Seq Num: 1 Dup Item ID: 0 Field Flags: ATTACH SIGN SEAL SUMMARY
note the Host type (in red bold). usually this would be MSDOS for a typical file attachment (or Mac for a Mac attachment). the value 2304 is HOST_STREAM and it's used when we store large bytestreams in file attachments, but don't want them handled as regular file attachments by the Notes client; e.g., OLE objects are stored this way as are large MIME parts which don't fit in a single Body item.
in your case, the mime.htm attachment corresponds to a Body item with a data type of MIME. if you look at the doc properties for the doc's Body item(s), you should see one with a content-type header with a type/subtype of text/html. however, rather than containing the html for the part. it will contain the name of the attachment which contains the html -- mime.htm; a level of indirection, if you will.
when MIME parts are larger than about 40KB, we 'redirect' them to attachments; you'll note that the attachment above is about 42KB. these file attachments will have a host type of HOST_STREAM as does the mime.htm attachment in your example.
you must use the MIME apis in order to successfully access the content of documents such as this one.
Feedback response number PLYS8BARR8 created by ~Judy Umluvitchakoi on 11/17/2010